SMTPSocket
.DisconnectFromServer Method
Closes the connection with the mail server.
Syntax